﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using MvcContrib.FluentHtml;
using Revis.VClinicNet.App.Internal.Dto;

namespace Revis.VClinicNet.UI.Internal.Mvc.Models.Forms
{
    public class EntryCreateFormModel : EntryCreateDto
    {
        public string PatientName { get; protected set; }

        public EntryCreateFormModel(VisitInfoDto visit) : this(visit, new EntryCreateDto()) { }

        public EntryCreateFormModel(VisitInfoDto visit, EntryCreateDto entry)
        {
            PatientName = visit.PatientName;
            DoctorId = entry.DoctorId;
            VisitId = entry.VisitId;
            Reason = entry.Reason;
            Description = entry.Description;
            Recommendation = entry.Recommendation;
        }
    }
}